﻿using System;
using System.Dynamic;
using System.Collections.Generic;

namespace _139_以字典形式访问ExpandoObject_动态类型
{
    class Program
    {
        static void Main(string[] args)
        {
            dynamic d = new ExpandoObject();
            d.Appname ="sample";
            d.Ver = "1.0.3";
            d.Desc = "test aplication";
            d.Release = 5;

            IDictionary<string, object> idic = d;

            foreach (var item in idic)
            {
                Console.WriteLine($"{item.Key}:{item.Value}");
            }
        }
    }
}
